import { actionTypes } from '@constant';

function appReducer(state = {}, action) {
  const { payload, type } = action;

  switch (type) {
    case actionTypes.SET_PRELOAD: {
      return { ...state, isPreloadDone: payload };
    }
    default:
      return state;
  }
}

export default appReducer;
